package com.sunny.design.prototype.deep;

/**
 * 深克隆
 *
 * @author Sunny
 * @date 2019/12/31 16:54
 */
public class DeepPrototypeTest {
    public static void main(String[] args) throws CloneNotSupportedException {
        QiTianDaSheng daSheng = new QiTianDaSheng();
        QiTianDaSheng clone = (QiTianDaSheng) daSheng.clone();
        System.out.println(daSheng == clone);
        System.out.println(daSheng.jinGuBang == clone.jinGuBang);
    }
}
